export default function (http) {
    return {
        getCurrentUser (){
            return http
                .get('/user/info');
        },

        getButtons (data){
            return http
                .postJson('/user/myPermission', data);
        }
    }
}
